package band.wukong.practice.java.core.topic.concurrency.thread.interrupt;

/**
 * 使用Thread.interrupted（）方法判断中断状态
 * Refer: http://blog.csdn.net/ns_code/article/details/17091267
 *
 * @author wukong(wukonggg@139.com)
 */
public class InterruptReset {

    public static void main(String[] args) {
        System.out.println("Point X: Thread.interrupted()=" + Thread.interrupted());
        Thread.currentThread().interrupt();
        System.out.println("Point Y: Thread.interrupted()=" + Thread.interrupted());
        System.out.println("Point Z: Thread.interrupted()=" + Thread.interrupted());
        System.out.println("Point A: Thread.interrupted()=" + Thread.interrupted());
    }
}
